\frame[containsverbatim]
{
  \frametitle{Emitting a warning}
  \B
  \item Change {\tt emitWarning} to use the BugReporter to
        emit a warning:
    \B
    \item Create BugInstance object, decorate with BugAnnotations
    \item Call {\tt reportBug} method on BugReporter
    \E
  \E
{\scriptsize
\begin{verbatim}
  private void emitWarning() {
    String type = "SGC_SYSTEM_GC";
    int priority = Priorities.NORMAL_PRIORITY;
    BugInstance warning = new BugInstance(this, type, priority)
      .addClassAndMethod(this)
      .addSourceLine(this);
    bugReporter.reportBug(warning);
  }
\end{verbatim}
}
}
